#include <iostream>
#include <string>
#include <pzmq.hpp>
#include <pzmq_data.h>

int main()
{
    pzmq rpc("test");
    rpc.CallRpcAction("test_func", pzmq_data::SetParam("hello", "rpc"),
                      [](pzmq *self, const std::shared_ptr<pzmq_data> &msg)
                      {
                          std::cout << msg->GetParam(0) << " " << msg->GetParam(1);
                      });
    return 0;
}